#define _CRT_SECURE_NO_WARNINGS
#ifdef  _WIN32
#include <WinSock2.h>
#include <windows.h>
#pragma comment(lib,"ws2_32.lib")
#pragma comment(lib,"psapi.lib")
#pragma comment(lib,"Iphlpapi.lib")
#pragma comment(lib,"Userenv.lib")
#endif
#include "bsearch.h"
#include<iostream>
#include<string>
#include<algorithm>
#include "tcp_process.h"
#include "hash.h"

int main__()
{
	uint16_t port = 8054;
	uv_loop_t* uv_loop = uv_default_loop();
	tcp_server1 tcpserver;
	tcpserver.tcp_init("./config_flv.json", uv_loop);
	tcpserver.start("0.0.0.0", port);
	printf("the server is at %d running!\n", port);
	uv_run(uv_loop, UV_RUN_DEFAULT);
	return 0;
}






